Finding Concavity And Inflection Points From A Given Graph